package cn.ichensw.otherworldlystationbackend.mapper;

import cn.ichensw.otherworldlystationbackend.model.entity.FilmTelevisionUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @author csw
 * @description 针对表【film_television_user】的数据库操作Mapper
 * @createDate 2023-08-15 12:18:38
 * @Entity cn.ichensw.otherworldlystationbackend.model.entity.FilmTelevisionUser
 */
public interface FilmTelevisionUserMapper extends BaseMapper<FilmTelevisionUser> {

    /**
     * 恢复被删除的数据
     *
     * @param filmId 电影ID
     * @param userId 用户ID
     */
    void updateDeletedFilmTelevisionUser(Long filmId, Long userId);

    /**
     * 根据电影ID和用户ID查询关联表记录
     *
     * @param filmId 电影ID
     * @param userId 用户ID
     * @return FilmTelevisionUser
     */
    FilmTelevisionUser selectFilmTelevisionUserByUserIdAndFilmId(Long filmId, Long userId);
}




